<template>
  <div class="use-card">
    <div class="use-card-head">
      <div>排名</div>
      <div>企业名称</div>
      <div>购卡数量</div>
      <div>已使用</div>
    </div>
    <div class="use-card-con" v-for="(item,index) in userCardData">
      <div>
        <div>{{index + 1}}</div>
      </div>
      <div>{{item.enterpriseName}}</div>
      <div>{{item.totalCards}}</div>
      <div>{{item.usedCards}}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'UseCardChart',
  props:['userCardData'],
  mounted() {

  },
  methods: {

  }
};
</script>
<style lang="scss" scoped>
.use-card {
  width: 100%;
  padding: 0px 20px;
  box-sizing: border-box;
  &-head{
    width: 100%;
    height: 60px;
    line-height: 60px;
    display: flex;
    >div{
      width: 30%;
      height: 60px;
      line-height: 60px;
      text-align: center;
      font-weight: 400;
      font-size: 14px;
      margin: auto;
      color: #9F9F9F;
      border-top: 1px solid #E0E0E0;
      border-bottom: 1px solid #E0E0E0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;

    }
    >div:nth-child(1){
      width: 20% ;
      min-width: 20%;
    }
  }
  &-con{
    width: 100%;
    display: flex;
    >div{
      width: 30%;
      height: 60px;
      line-height: 60px;
      text-align: center;
      margin: auto;
      border-bottom: 1px solid #E0E0E0;
      font-size: 14px;
      color: #333333;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    >div:nth-child(1){
      width: 20%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: auto;
      text-align: center;
      >div{
        width: 24px;
        height: 24px;
        margin: auto;
        line-height: 24px;
        text-align: center;
        font-size: 12px;
        color: #FFFFFF;
        background: linear-gradient(309deg, #FE5F73 0%, #FFCED4 100%);
        box-shadow: 0px 0px 3px rgba(254,95,115,0.2);
        border-radius: 50%;
      }

    }
  }
}
</style>
